package com.pig4cloud.pig.resident.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.resident.feign.dto.ResidentDto;
import com.pig4cloud.pig.resident.feign.entity.Resident;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ResidentMapper extends BaseMapper<Resident> {
	Resident checkPhone(Resident resident);

    List<Resident> getResident(Long roomId);

	List<ResidentDto> getUnResident(ResidentDto residentDto);

	void deleteResident(@Param("array") Long[] ids, @Param("roomId") Long roomId);

	void addResident(@Param("array") Long[] ids, @Param("roomId") Long roomId);

    String[] getResidentPhone(Long roomId);
}
